
<!-- saved from url=(0026)/test.html -->
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>骡窝窝问答,解决旅行问题,基于旅游的问答分享平台 - 骡窝窝</title>
    <meta name="viewport"
          content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui,viewport-fit=cover">
    <meta name="format-detection" content="telephone=no,address=no">

    <link href="/css/mobile+css+head_mobile+css+ui^YVw^1526627473.css" rel="stylesheet" type="text/css">

    <link href="/css/new_ask2016.css" rel="stylesheet" type="text/css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/plugins/form/jquery.form.js"></script>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script>
        $(function () {
            var arr = [];
            var currentPage = 1;
            var pages;
            $.get("/questions/list", {currentPage: currentPage,pageSize:8}, function (data) {
                $.merge(arr, data.list);
                $(".ans-list").renderValues({list: arr}, {
                    'getHref': function (item, value) {
                        var href = $(item).data("href");
                        $(item).attr("href", href + value);
                    }
                });
                pages = data.pages;
                currentPage = currentPage + 1;
            });


            $(window).scroll(function () {
                if ($(document).scrollTop() + $(window).height() >= $(document).height()) {
                    if (currentPage <= pages) {
                        $.get("/questions/list", {currentPage: currentPage}, function (data) {
                            $.merge(arr, data.list);
                            $(".ans-list").renderValues({list: arr}, {
                                'getHref': function (item, value) {
                                    var href = $(item).data("href");
                                    $(item).attr("href", href + value);
                                }
                            })
                            pages = data.pages;
                            currentPage = currentPage + 1;
                        });
                    } else {
                        $(document).dialog({
                            type: 'notice',
                            infoText: '已经到底了!',
                            autoClose: 1000,
                            position: 'center'  // center: 居中; bottom: 底部
                        });
                    }
                }

            });
        })

    </script>
</head>
<body>
<div id="pos38"></div>
<header class="MfwHead">
    <div class="LBtn">
        <a class="btn back"
           href="/index.html"
           id="_j_top_history_back"><img src="/img/back.jpg" height="45px" width="45px"></a>
    </div>
    <div class="CBtn"><h1>骡窝窝问答</h1></div>
    <div class="RBtn">
    </div>
</header>

<section class="ans-list a-list">
    <ul class="_j_pager_box" render-loop="list">
        <li>
            <a data-href="/askComment.html?id=" render-key="list.id" render-fun="getHref">
                <h2 render-html="list.title"></h2>
                <div class="clearfix">
                    <div class="user-img clearfix" data-uid="46376914">
                        <p>
                            <img render-src="list.user.headImgUrl">
                        </p>
                        <span render-html="list.user.nickName"></span>
                    </div>
                    <div class="ans-nr">
                        <div class="clearfix">
                            <div class="pic"><img render-src="list.imgUrl">
                            </div>
                            <p render-html="list.content">
                            </p>
                        </div>
                        <div class="clearfix">
                            <span class="fl-l" render-html="list.region"></span>
                            <span class="fl-r"><b
                                    render-html="list.browse"></b>浏览<b
                                    render-html="list.praiseCount">0</em></b><em>顶</em></span>
                        </div>
                    </div>
                </div>
            </a>
        </li>
    </ul>
</section>
<br/>
<br/>
<br/>

<section class="askfoot">
    <a href="/mine/ask.html" class="btn-que"><i></i>
        我要提问
    </a>
</section>


</body>
</html>